package com.xianghualin.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * User 用户的实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    /**
     * 0代表管理员,  1代表普通用户
     */
    private static final int USER_ADMIN = 0;
    private static final int USER_NORMAL = 1;
    /**
     * 0代表用户未被锁定, 1代表用户锁定
     */
    private static final int USER_UNLOCK = 0;
    private static final int USER_LOCK = 1;
    /**
     * 用户的基本属性
     */
    private int userId;
    private String userName;
    private String password;
    private int userPhone;
    private String userEmail;
    private String userSex;
    private Timestamp createTime;
    private int userType;
    private int userState;
    private int credit;
    private Timestamp lastLoginTime;
    private String lastIp;
}
